#define _CRT_SECURE_NO_WARNINGS 1
#include"stdio.h"
int main()
{
    int l = 0;
    int r = 0;
    scanf("%d%d", &l, &r);
    int x = 0;
    int i = 0;
    int t = 0;
    int arr[9] = { 0 };
    for (x = l; x <= r; x++)
    {
        i = 1;
        t = x;
        int a = x / 2;
        while (a--)
        {
            if (x % t == 0)
            {
                arr[i - 1]++;
                if (t > 9)
                {
                    while (t > 9)
                        t = t / 10;
                    arr[t - 1]++;
                }
                else
                {
                    arr[t - 1]++;
                }
            }
            i++;
            t = x / i;
        }
    }
    for (i = 0; i < 9; i++)
    {
        printf("%d\n", arr[i]);
    }
    return 0;
}